<?php
  	function changedate($date)	{
        $day=substr($date,0,2);
        $month=substr($date,3,2);
        $year=substr($date,6,4);
        $cdate="";
        $cdate=$year."-".$month."-".$day;
        return $cdate;
	}
	function strtotimefix ($strtotime){
	   return time() + (strtotime($strtotime) - strtotime('now'));
	}	
?>